<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * @author huydv <huydang1920@gmail.com> 0979750599
 * @copyright Dang Van Huy 2013
 * 
 * Model
 * Function on Photo
 */
class Photo_model extends MY_Model {

    function __construct() {
        parent::__construct();

        $this->db_table = 'crawler_images';
    }

    /**
     * function get Photo								)
     *  @return array
     */
    function getPhotos($where = array(), $order_by = NULL, $is_one = FALSE, $limit = 20) {
        $result = $this->get($where, $order_by, $is_one, $limit);
        return $result;
    }

}

?>